package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysUserRole;

import java.util.List;

/**
 * 用户角色关联服务
 */
public interface ISysUserRoleService {
    List<SysUserRole> selectByUserId(Long userId);

    int deleteByUserId(Long userId);

    void deleteByUserIds(Long[] userIds);

    boolean delete(SysUserRole userRole);

    boolean deleteBatch(Long roleId, Long[] userIds);

    int saveList(List<SysUserRole> list);

    List<SysUserRole> selectByRoleId(Long roleId);

    List<SysUserRole> selectNotEQRoleId(Long roleId);
}
